package com.my.mapper;
 
import java.util.List;

import com.my.bean.Category;
import com.my.bean.Page;
import com.my.bean.URLSAVE;
import com.my.bean.User;

 
public interface CategoryMapper {
      
    public int add(Category category);  
      
    public void delete(int id);  
      
    public Category get(int id);   
      
    public int update(Category category);    
      
    public List<Category> list();
    
    public List<Category> list(Page page);
      
    public int count();  
    
    public List<User> selectall();
    
    public int adduser(User user);
	public void deleteuser(int id);
	public User selectbyname(String name);
	public int addURL(URLSAVE urlsave);
	public URLSAVE selectbycontext(String url_context);
	public List<URLSAVE> selectallcontext();
    public List<URLSAVE> selectallsearch(String url_name);
}